var Config = require('config');
var PomeloNet = require('pomeloNet');
var Co = require('constant');
var SingleEventTarget = require('SingleEventTarget');
var Net = function () {
    //APP数据
    this.name = "i am net";
	this.serverType = Co.SERVER_POMELO;
};
var pro = Net.prototype;
pro.init = function () {
	if(this.serverType == Co.SERVER_POMELO){
		PomeloNet.init();
	}
};
pro.login = function(userData){
	if(this.serverType == Co.SERVER_POMELO){
		PomeloNet.login(userData);
	}
};
module.exports = new Net();



